﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Sharp.Portal;
using Sharp.Portal.Mvc.List;
using Sharp.Portal.Other;
using Ext.Net;
using Ext.Net.MVC;
namespace Sharp.WebBooter.Areas.Platform.Models
{
    [DataHandler(ModuleOP.Create, "新增", 1, UrlAction = "CategoryCreate")]
    [DataHandler(ModuleOP.Edit, "修改", 2, UrlAction = "CategoryEdit")]
    [DataHandler(ModuleOP.Delete, "删除", 3, UrlAction = "CategoryDelete")]
    public class MasterDataCategoryTreeViewModel : Sharp.Portal.ExtNet.ExtSharpList
    {
        public MasterDataCategoryTreeViewModel()
        {
            this.Feature = ListFeature.None;

            this.Listeners.Add("SelectionChange", "new MasterData().categoryItemclick(this)");
        }
        [Ext.Net.MVC.Column(Hidden = true)]
        public int Id { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        [Ext.Net.MVC.Column(Text = "名称", Flex = 1)]
        public string Name { get; set; }
        /// <summary>
        /// 编码
        /// </summary>
        [Ext.Net.MVC.Column(Hidden = true)]
        public string Code { get; set; }
    }
}